<?xml version="1.0"?>

<f:view
	xmlns="http://www.w3.org/1999/xhtml"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui"
	xmlns:ui="http://java.sun.com/jsf/facelets"
>
	<h:head />
	<h:body>
		<h:form>
			<p:panelGrid>
				<p:row >
						<p:column><h:outputText id="searchTitle" value="Search by Book Title :" /></p:column>
						<p:column><p:inputText id="searchBookTitle" type="text" value="#{library.searchBackingBean.bookTitle}" /></p:column>
					</p:row>
					<p:row>
						<p:column><h:outputText id="searchAuthor" value="Search by Author's Name :" /></p:column>
						<p:column><p:inputText id="searchBookAuthor" type="text" value="#{library.searchBackingBean.author}" /></p:column>
					</p:row>
					<p:row>
						<p:column colspan="2"><p:commandButton value="Search Book" actionListener="#{library.searchBook}"></p:commandButton></p:column>
					</p:row>
			</p:panelGrid>
		</h:form>
	</h:body>
</f:view>